function* listColors() {
    yield 'pink';
    yield 'lightblue';
    yield 'cyan';
}

const colors = listColors();
console.log(colors.next());